<div class="left-sidebar-scroll">
    <div class="left-sidebar-content">
        <ul class="sidebar-elements">
    {{--@foreach(app('hd-menu')->all() as $k=>$v)--}}
                @foreach(\HDModule::getMenuByModule() as $k => $v)
            <li class="divider">{{$k}}</li>
            {{--@foreach($v as $kk=>$vv)--}}
            <li class="parent">
                <a href="#"><i class="icon mdi mdi-face"></i><span>{{$v['title']}}</span></a>
                <ul class="sub-menu">
                    @foreach($v['menus'] as $kkk=>$vvv)
                        {{--网站提供的有这个权限才会显示--}}
                        {{--@can($vvv['permission'])--}}
                    {{--如果是站长权限不判断;如果不是站长再来根据你给的权限来判断放不放行--}}
                    @if(\HDModule::hadPermission($vvv['permission'],'admin'))
                    <li>
                        <a href="{{$vvv['url']}}" pjax>{{$vvv['title']}}</a>
                    </li>
                        @endif
                        {{--@endcan--}}
                     @endforeach
                </ul>
            </li>
           {{--@endforeach--}}
    @endforeach
            <li class="divider">技术支持</li>
            <li class="parent"><a href="#"><i class="icon mdi mdi-view-web"></i><span>支持</span></a>
                <ul class="sub-menu">
                    <li>
                        <a href="layouts-primary-header.html">视频教程</a>
                    </li>
                    <li>
                        <a href="layouts-success-header.html">访问官网</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>